package com.yjhh.chdataservice.domain;

import lombok.Data;
import org.springframework.data.annotation.Transient;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 文件上传记录
 */
@Entity
@Data
public class FileUploadRecord extends BaseEntity {

    @Column(nullable = false)
    private String requestIp;    //上传文件IP

    @Column(nullable = false)
    private String fileName;    //上传文件名

    @Column(nullable = false)
    private String fileSrcParentPath;  //文件原始父文件件夹路径

    private String fileHdfsParentPath;  //文件在HDFS中父文件件夹路径

    @Column(nullable = false)
    private Long fileSize;  //文件大小（byte，字节）

    @Column(nullable = false)
    private String fileExtensionName;  //文件扩展名

    @Column(nullable = false)
    private Integer hdfsFileStatus;   //1：正常;0：待上传;-1：删除

}
